
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c, $(ROOT_PATH)/obj/%.o, $(SRC))

DEPS := -I$(ROOT_PATH)/include \
		-I$(ROOT_PATH)/include/layers

all: $(OBJ)
$(OBJ): $(ROOT_PATH)/obj/%.o:%.c
	$(CC) $(CFLAGS) $(DEPS) -c $< -o $@